-- GENERATED SPELL FOR [Blighthound] --


function spell0_11885(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(16577,pUnit)
pUnit:RegisterEvent('Sorts_11885', 0, 1)
end

function spell1_11885(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11885', 15000, 1)
end

function Sorts_11885(pUnit, Event)
local choix_sorts_11885 = math.random(0, 1)
if choix_sorts_11885 == 0 then
pUnit:RegisterEvent('spell0_11885', 1, 1)
end
if choix_sorts_11885 == 1 then
pUnit:RegisterEvent('spell1_11885', 1, 1)
end
end

function mob11885_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11885', math.random(1500, 3000), 1)
end

function mob11885_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11885_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11885_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11885, 1, 'mob11885_Action')
RegisterUnitEvent(11885, 2, 'mob11885_Leave')
RegisterUnitEvent(11885, 3, 'mob11885_Kill')
RegisterUnitEvent(11885, 4, 'mob11885_Die')
